function setStudentSubject(){   
	var fields = [];
 	var start = $("#StudentSubject_search_birthday_date").val();
 	if(start){
 		 var con = {fieldName:'birthday',fieldParam:'birthday1',fromAssociateObject:"student",condition:'ge',fieldValue:Gfa.ConditionHelper.processDate(start,"ge")};
 		 fields.push(con);
 	}
  	var end = $("#StudentSubject_search_birthday_date2").val();
  	if(end){
  		var con = {fieldName:'birthday',fieldParam:'birthday2',fromAssociateObject:"student",condition:'le',fieldValue:Gfa.ConditionHelper.processDate(end,"le")};
		fields.push(con);   
	}  
	$('#StudentSubject_table').jqGrid('setQueryInfoFields',fields);
	return true;
}

function fmBirthday(cellVal,cellConfig,rowData){
	if(!$.isEmptyObject(rowData) && !$.isEmptyObject(rowData.student)){
		if(rowData.student.birthday){
			var rpd = rowData.student.birthday;
			rpd = rpd.substring(0,rpd.length-3);
			return  rpd;
		}
	}
	return "";
}

function fmStudentId(cellVal,cellConfig,rowData){
	if(!$.isEmptyObject(rowData) && !$.isEmptyObject(rowData.student)){
		if(rowData.student.studentId){
			return rowData.student.studentId;
		}
	}
	return $.StringUtils.isEmpty(cellVal)?"":cellVal;
}
function fmStudentName(cellVal,cellConfig,rowData){
	if(!$.isEmptyObject(rowData) && !$.isEmptyObject(rowData.student)){
		if(rowData.student.studentName){
			return rowData.student.studentName;
		}
	}
	return $.StringUtils.isEmpty(cellVal)?"":cellVal;
}
function fmStudentNum(cellVal,cellConfig,rowData){
	if(!$.isEmptyObject(rowData) && !$.isEmptyObject(rowData.student)){
		if(rowData.student.studentNum){
			return rowData.student.studentNum;
		}
	}
	return $.StringUtils.isEmpty(cellVal)?"":cellVal;
}
